#pragma once
#include <qthread.h>
#include <qobject.h>
#include "classes\Automat.hpp"


class painThread : public QThread
{
	Q_OBJECT
	Automat *test;	
public:
	
	//QHash<QPoint,Car> samochody;
	painThread(void);
	painThread(Automat *tes);
	~painThread(void);
private:
	void run();
signals:
	void nextMoveReady(QPoint nowa_pozycja, int CarId);
	void doNextMove();

};

